.macro Sleep(tics) {
    ldy #tics
outerloop:
    ldx #0
innerloop:
    dex
    bne innerloop
    dey
    bne outerloop
}

.macro MicroSleep(tics) {
    ldx #tics
loop:
    dex
    bne loop
}

.macro Nop(nops) {
    .for (var i = 0; i < nops; i++) {
        nop
    }
}